import supplierApi from './system/supplierApi.js'
import controlApi from "./threejs/controlApi.js";

export default app => {
  // system
  supplierApi(app);
  // threejs
  controlApi(app);
  // 错误处理
  app.use(async (err, req, res, next) => {
      res.status(err.statusCode || 500).send({
          message: err.message,
          code: err.statusCode || 500
      })
  })

}
